import Vue from 'vue'
import {

     //布局
     Container,
     Aside,
     Header,
     Main,
     Footer,

     Row,
     Col,

     //导航
     Menu,
     Submenu,
     MenuItem,
     MenuItemGroup,

     //Form 表单
     Form,
     FormItem,
     Input,
     InputNumber,
     Button,
     RadioGroup,
     Radio,
     RadioButton,
     CheckboxGroup,
     Checkbox,
     CheckboxButton,
     Select,
     Option,
     Switch,

     Upload,
     Avatar,

     //Table 表格
     Table,
     TableColumn,
     Pagination,

     Tabs,
     TabPane,

     Card,

     //消息相关
     Alert,
     Loading,
     MessageBox,
     Message,
     Notification,

     //弹层
     Dialog,
     Tooltip,
     Popover,
     Popconfirm,

     Drawer,

     Empty,
     Image,

    

} from 'element-ui'

// 布局
Vue.use(Container)
Vue.use(Aside)
Vue.use(Header)
Vue.use(Main)
Vue.use(Footer)

Vue.use(Row)
Vue.use(Col)

// 导航
Vue.use(Menu)
Vue.use(Submenu)
Vue.use(MenuItem)
Vue.use(MenuItemGroup)

//Form 表单
Vue.use(Form)
Vue.use(FormItem)
Vue.use(Input)
Vue.use(InputNumber)
Vue.use(Button)
Vue.use(RadioGroup)
Vue.use(Radio)
Vue.use(RadioButton)
Vue.use(CheckboxGroup)
Vue.use(Checkbox)
Vue.use(CheckboxButton)
Vue.use(Select)
Vue.use(Option)
Vue.use(Switch)

Vue.use(Upload)

Vue.use(Avatar)

//Table 表格
Vue.use(Table)
Vue.use(TableColumn)
Vue.use(Pagination)

//Tabs 标签页
Vue.use(Tabs)
Vue.use(TabPane)

Vue.use(Card)

//消息
Vue.use(Alert)
Vue.use(Loading)

//弹层
Vue.use(Dialog)
Vue.use(Tooltip)
Vue.use(Popover)
Vue.use(Popconfirm)

Vue.use(Drawer)

Vue.use(Empty)

Vue.use(Image)


//注册vue属性对象 消息和弹层
Vue.prototype.$loading = Loading.service;
Vue.prototype.$msgbox = MessageBox;
Vue.prototype.$alert = MessageBox.alert;
Vue.prototype.$confirm = MessageBox.confirm;
Vue.prototype.$prompt = MessageBox.prompt;
Vue.prototype.$notify = Notification;
Vue.prototype.$message = Message;
